package operation;

import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;

public class ReadMessage {

	private String txt = "";

	public ReadMessage(String filepath) throws IOException {
		String text = "";
		File file = new File(filepath);
		FileReader fr = new FileReader(file);
		BufferedReader br = new BufferedReader(fr);

		while ((text = br.readLine()) != null) {
			// System.out.print(text);
			txt += text;
			txt += '\n';
		}
		br.close();
	}

	public String Textvalue() {
		return txt;
	}

}
